//
//  MarkListViewController.m
//  YL8G
//
//  Created by Liccon Chang on 12-8-1.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "MarkListViewController.h"
#import "NoteInfo+YL8G.h"
#import "tyconsts.h"

@implementation MarkListViewController

- (void)loadView
{
    [super loadView];
    [self setNavigationTitle:@"收藏记录"];
}

- (void)addPullToRefreshHeader
{
    
}

- (CGRect)getTableViewFrame
{
    return CGRectMake(0, 0, kScreenWidth, getScreenHeight() - kStatusHeight-kNavHeight);
}

- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate 
{
    
}

- (BOOL)requestListData:(BOOL)refresh
{
    if (listFeeds_==nil)
    {
        NSArray* noteArray=[NoteInfo queryAllMarks];
        listFeeds_ = [[NSMutableArray alloc] initWithCapacity:noteArray.count];
        [listFeeds_ addObjectsFromArray:noteArray];
        feeds_=listFeeds_;
    }
    [mainTable_ reloadData];
    return FALSE;
}

@end
